<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>


<script>
  //1.参数问题,放入两个参数
  const sum = (num1,num2)=>{
      return num1+num2
  }

  //1.2参数问题，放入一个参数,只有一个参数的时候，小括号可以省略
  const power = num=>{
      return num*num
  }

  //2.函数代码块中有多行代码时
  const test = ()=>{
      //1.打印hello world
      console.log('hello world');
      //2.打印hello vuejs
      console.log('hello vuejs');
  }

  //2.1函数代码块中只有一行代码时
  // const mul =(num1,num2)=>{
  //     return num1*num2
  // }
  const mul = (num1,num2) => num1 * num2
  console.log(mul(20,30))


</script>
</body>
</html>